package com.cin.cma.common.enums;

import lombok.Getter;


@Getter
public enum SystemErrorCode {
    SUCCESS("SUCCESS", "成功"),
    SYSTEM_ERROR("SYSTEM_ERROR", "系统异常"),
    PARAM_ERROR("PARAM_ERROR", "参数异常"),
    SIGNATURE_ERROR("SIGNATURE_ERROR", "系统签名不正确"),
    UNAUTHORIZED("UNAUTHORIZED", "无权访问"),
    FORBIDDEN("FORBIDDEN", "无权访问资源"),
    NETWORK_TIMEOUT("NETWORK_TIMEOUT", "网络请求超时"),
    NETWORK_ERROR("NETWORK_ERROR", "网络请求错误"),
    UNIQUECODE_ERROR("UNIQUECODE_ERROR", "生成唯一键异常");

    private final String code;
    private final String message;

    SystemErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

}
